// tabBarComponent/tabBar.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value: {
        "backgroundColor": "#ffffff",
        "color": "#979795",
        "selectedColor": "#1c1c1b",
        "list": [
          {
            "pagePath": "/pages/main/home/home",
            "iconPath": "/components/tabbarComponent/icon/tab1.png",
            "selectedIconPath": "/components/tabbarComponent/icon/tab1-active.png",
            "text": "首页"
          },
          {
            "pagePath": "/pages/main/category/category",
            "iconPath": "/components/tabbarComponent/icon/tab2.png",
            "selectedIconPath": "/components/tabbarComponent/icon/tab2-active.png",
            "text": "分类"
          },
          {
            "pagePath": "/pages/active/festival/festival",
            "iconPath": "/components/tabbarComponent/icon/icon_release.png",
            "isSpecial": true,
            "text": "端午特惠"
          },
          {
            "pagePath": "/pages/main/customer/customer",
            "iconPath": "/components/tabbarComponent/icon/tab3.png",
            "selectedIconPath": "/components/tabbarComponent/icon/tab3-active.png",
            "text": "客服"
          },
          {
            "pagePath": "/pages/main/my/my",
            "iconPath": "/components/tabbarComponent/icon/tab4.png",
            "selectedIconPath": "/components/tabbarComponent/icon/tab4-active.png",
            "text": "我的"
          },

        ]
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
  isIphoneX: my.getSystemInfoSync().model.indexOf('iPhone X') != -1 ? true : false
  },

  /**
   * 组件的方法列表
   */
  methods: {
   
  }
})
